package com.atguigu.lease.web.admin.controller.attr;

import com.atguigu.lease.common.result.Result;
import com.atguigu.lease.web.admin.service.FeeKeyService;
import com.atguigu.lease.web.admin.vo.FeeKeyVo;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/admin/fee")
public class FeeController {
    @Resource
    FeeKeyService feeKeyService;
    @Operation(summary = "查询公寓杂费列表和值")
    @GetMapping("list")
    public Result<List<FeeKeyVo>> list(){
        return Result.ok(feeKeyService.listFeeKeyVos());
    }

}
